<?php
/**
 * <https://y.st./>
 * Copyright © 2018 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'Trying to take the day off',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2018/11/14.jpg" alt="Not quite to Eugene" class="framed-centred-image" width="649" height="480"/>
<section id="reat">
	<h2>Rest</h2>
	<p>
		I decided to shirk responsibility for the day.
		A little over a week ago, I caught a small cold.
		After about three days, it was just about gone.
		But then all this stressful stuff went down, and my cold started getting worse.
		I need rest, but even more than that, I need some relaxation.
		School started at 22:00, so I spent my time before that just unwinding.
		The grocery shopping can wait a couple days.
		The searching of the recycling centre can wait a few months.
		Getting better needs to happen now.
	</p>
	<p>
		I took the relaxing bath as planned, though it wasn&apos;t as relaxing as I thought it&apos;d be, as I was all the while thinking about a package that may or may not arrive.
		Yesterday, I found a tag on my door telling me the mail carrier had missed me, and needed me to sign for a package.
		I was home though.
		They must&apos;ve not bothered to ring the doorbell.
		Some people try knocking instead of just ringing the doorbell, but the thing is, if I&apos;m in another room, I often can&apos;t hear people knocking.
		If you ring the bell, I can hear you all throughout the apartment.
		Ringing is always the smarter option, unless there&apos;s a sign telling you not to ring the bell.
		Anyway, the tag said the package was available for pickup at the post office, but also called the failed delivery a &quot;first attempt&quot;, which implies that at least another attempt will be made.
		When I was sure the mail carrier had been by for the day and hadn&apos;t brought the package, which could only be the new rings I ordered, I took a trip to the post office.
		It took them a bit to find the package for whatever reason, but they found it.
		The scary part though was that they didn&apos;t even ask to see my $a[ID].
		Anyone could have taken that tag off my door and used it to take my package.
	</p>
	<p>
		Later, I decided to run the hard drive enclosure errand after all.
		I could use the ride to unwind a bit and get some fresh air.
		I would only go at a leisurely pace today.
		However, before I could make it out of Springfield, my front inner tube blew.
		It was a short walk home though, as I hadn&apos;t made it far, and as the errand was never the real goal in going out, I didn&apos;t get frustrated as I&apos;ve been doing with everything else that&apos;s gone wrong lately.
	</p>
	<p>
		I tried to get my laundry done, but all the washing machines were full.
		I normally do the laundry on Tuesday nights, but I really wasn&apos;t feeling up to it last night.
	</p>
	<p>
		Next, I worked on repairing the bike.
		At first, I tried to take an inner tube from one of my spare wheels, seeing as the spare wheels are the same size as the new bike&apos;s wheels, not the old bike&apos;s wheels.
		Taking tires off of bike wheels when a functioning and previously-inflated inner tube always proves to be a challenge.
		Once the inner tube pops, the last of the air pressure leaves it, but as long as the thing&apos;s intact, you can&apos;t quite deflate it all the way.
		While partly-inflated, they keep the tires in place rather well.
		I gave up and just put spare wheel on the new bike, but found that this wheel rubs the brakes badly.
		I ended up having to remove the tire and transfer the inner tube after all.
	</p>
	<p>
		My mother wants me to look at her new computer.
		It&apos;s having issues now as well.
		I told her I couldn&apos;t do it today, and I might not be able to do it tomorrow.
		There simply weren&apos;t enough hours left before school started, and I&apos;d only have three hours to get that first discussion post in and make my own personal deadline.
		Getting the discussion post completed would likely require reading a large chunk of the material for the week, which is what the bulk of that three hours would be used for.
		And that doesn&apos;t even account for the fact that I still hadn&apos;t gotten a chance to do laundry yet.
		Once she left, I got my laundry done as planned.
	</p>
</section>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		My discussion post for the day:
	</p>
	<blockquote>
		<h3>Type</h3>
		<p>
			A type, as defined by the textbook, is pretty much just a set.
			The set contains certain values, but excludes others (Shaffer, 2011).
			What the book doesn&apos;t tell us though is that the values of a type have something in common, which is what groups them together.
			For example, whole numbers form a type called integers.
			Single-bit values form a type called booleans.
			Values made up of character data form a type called strings.
			A multitude of other types are available as well.
		</p>
		<h3>Data Item</h3>
		<p>
			A data item is simply a value that belongs to a type (Shaffer, 2011).
			For example, <code>true</code> is a data type belonging to the boolean type.
			Another way to say that is that <code>true</code> is a member of the boolean type.
		</p>
		<h3>Data Type</h3>
		<p>
			A data type, as defined by the book, is a type combined with the operations that can be performed on it.
			Variables belong to data types; they represent a specific data item belonging to a type, and operands and functions can be used on them to perform operations on the data item they represent (Shaffer, 2011).
			Variables aren&apos;t the only things belonging to data types though.
			Value literals also belong to data types and can have the same operations performed on them.
		</p>
		<h3>Abstract Data Type</h3>
		<p>
			An abstract data type is a definition of a data type and the things that can be done with it (Shaffer, 2011).
			It&apos;s basically an $a[API] for a data type.
			Aside from the $a[API], nothing is defined.
			The implementation behind the $a[API] isn&apos;t included.
		</p>
		<h3>Data Structure</h3>
		<p>
			A data structure is the implementation of a data type (Shaffer, 2011).
		</p>
		<h3>Class</h3>
		<p>
			In an object-oriented programming language, a class is the combination of an abstract data type and the data structure that implements it.
			An object is an instance of a class (Shaffer, 2011).
		</p>
		<h3>Member Function</h3>
		<p>
			Member functions are functions that perform operations on instances of a class (Shaffer, 2011).
			In most programming languages, member functions are known as methods.
		</p>
		<h3>Data Members</h3>
		<p>
			A variable that contains a data item is called a data member (Shaffer, 2011).
		</p>
		<div class="APA_references">
			<h3>References:</h3>
			<p>
				Shaffer, C. (2011). A Practical Introduction to Data Structures and Algorithm Analysis. Blacksburg: Virginia. Tech. Retrieved from <a href="https://my.uopeople.edu/pluginfile.php/356474/mod_page/content/2/Practical_Into_to_Data_Structures_and_Algorithms_-_Shaffer.pdf"><code>https://my.uopeople.edu/pluginfile.php/356474/mod_page/content/2/Practical_Into_to_Data_Structures_and_Algorithms_-_Shaffer.pdf</code></a>
			</p>
		</div>
	</blockquote>
</section>
END
);
